<template>
    <div>
      <!--作品展示页面-->
      <ArticleHead />
      <ArticleTitle v-bind:loginId = "loginId" />
      <ArticleReplay v-bind:loginId = "loginId" />
      <ArticleBottom />
      <TranslateAndBaike />
      <ChangeLanguage />
      <BackUp />
    </div>
</template>

<script>
    import ArticleHead from './ArticleHead'
    import ArticleTitle from './ArticleTitle'
    import ArticleReplay from './ArticleReplay'
    import ArticleBottom from './ArticleBottom'
    import TranslateAndBaike from './TranslateAndBaike'
    import BackUp from '../../common/BackUp'
    import ChangeLanguage from '../../common/ChangeLanguage'

    export default {
        name: "WorksDisplayPage",
        data(){
            return{
                loginId: localStorage.getItem('userId'),
            }
        },
        components:{
            ArticleHead,
            ArticleTitle,
            ArticleReplay,
            ArticleBottom,
            TranslateAndBaike,
            ChangeLanguage,
            BackUp
        },
        // beforeCreate: function () {
        //     this.axios.post('http://localhost:8081/loginReg/weatherLogin').then(res=>{
        //         if (res.data == false) {
        //             this.$router.push('/loginRegistrationPage')
        //         } else {
        //             this.loginId = res.data
        //         }
        //     }).catch(
        //         exception=>{
        //             this.$router.push('/loginRegistrationPage')
        //         }
        //     )
        // },
    }
</script>

<style>
  body{
    /*background: url(../../assets/images/user/body-back/0.png);*/
    /*background-attachment:fixed;*/
  }
</style>
